export const routes = [
    {
        path: '/',
        redirect: '/config',
        meta: {
            requireAuth: false  // 添加该字段，表示进入这个路由是需要登录的
        }
    },
    {
        path: '/',
        component: () => import('@/components/common/Home.vue'),
        meta: {
            title: '自述文件',
            requireAuth: false
        },
        children: [
            {
                path: '/config',
                component: () => import('@/components/page/sys-home/Config.vue'),
                meta: {
                    title: '系统首页',
                    requireAuth: true
                }
            },
            {
                path: '/data-de-duplication',
                component: () => import('@/components/page/data-de-duplication/dataDeDuplication.vue'),
                meta: {
                    title: '数据查重',
                    requireAuth: true
                }
            },
            {
                path: '/duplicate-check',
                component: () => import('@/components/page/data-de-duplication/duplicateCheck.vue'),
                meta: {
                    title: '数据查重new',
                    requireAuth: true
                }
            },
            {
                path: '/urban-manage-household-contrast',
                component: () => import('@/components/page/data-de-duplication/urbanManageHouseholdContrast.vue'),
                meta: {
                    title: '城管户室数据对比',
                    requireAuth: true
                }
            },
            {
                path: '/sys-manage',
                component: () => import('@/components/page/user-manage/SysManage.vue'),
                meta: {
                    title: '管理员管理',
                    requireAuth: true
                }

            },
            {
                path: '/user-integration-data',
                component: () => import('@/components/page/user-manage/UserIntegrationData.vue'),
                meta: {
                    title: '用户积分数据',
                    requireAuth: true
                }
            },
            {
                path: '/sys-user',
                component: () => import('@/components/page/user-manage/SysUser.vue'),
                meta: {
                    title: '微信用户管理',
                    requireAuth: true
                }
            },
            {
                path: '/order-manage',
                component: () => import('@/components/page/order-manage/OrderManage.vue'),
                meta: {
                    title: '订单管理',
                    requireAuth: true
                }
            },
            {
                path: '/recycling-order',
                component: () => import('@/components/page/order-manage/RecyclingOrder.vue'),
                meta: {
                    title: '上门回收订单管理',
                    requireAuth: true
                }
            },
            {
                path: '/supplier-manage',
                component: () => import('@/components/page/user-manage/SupplierManage.vue'),
                meta: {
                    title: '供应商管理',
                    requireAuth: true
                }

            },
            {
                path: '/sys-dept',
                component: () => import('@/components/page/user-manage/SysDept.vue'),
                meta: {
                    title: '部门管理',
                    requireAuth: true
                }
            },
            {
                path: '/sys-role',
                component: () => import('@/components/page/user-manage/SysRole.vue'),
                meta: {
                    title: '角色管理',
                    requireAuth: true
                }
            },
            {
                path: '/message-sms',
                component: () => import('@/components/page/message-manage/MessageSms.vue'),
                meta: {
                    title: '短信服务',
                    requireAuth: true
                }
            },
            {
                path: '/message-mail-template',
                component: () => import('@/components/page/message-manage/MessageMailTemplate.vue'),
                meta: {
                    title: '邮件模版',
                    requireAuth: true
                }
            },
            {
                path: '/message-mail-log',
                component: () => import('@/components/page/message-manage/MessageMailLog.vue'),
                meta: {
                    title: '邮件发送记录',
                    requireAuth: true
                }
            },

            {
                path: '/sys-log-login',
                component: () => import('@/components/page/log-manage/SysLogLogin.vue'),
                meta: {
                    title: '登录日志',
                    requireAuth: true
                }
            },
            {
                path: '/sys-log-operation',
                component: () => import('@/components/page/log-manage/SysLogOperation.vue'),
                meta: {
                    title: '操作日志',
                    requireAuth: true
                }
            },
            {
                path: '/sys-log-error',
                component: () => import('@/components/page/log-manage/SysLogError.vue'),
                meta: {
                    title: '异常日志',
                    requireAuth: true
                }
            },
            {
                path: '/sql-monitor',
                component: () => import('@/components/page/sys-monitor/SqlMonitor.vue'),
                meta: {
                    title: 'SQL监控',
                    requireAuth: true
                }
            },
            {
                path: '/demo-news',
                component: () => import('@/components/page/function-demo/DemoNews.vue'),
                meta: {
                    title: '新闻管理',
                    requireAuth: true
                }
            },
            {
                path: '/sys-menu',
                component: () => import('@/components/page/sys-settings/SysMenu.vue'),
                meta: {
                    title: '菜单管理',
                    requireAuth: true
                }
            }, {
                path: '/sys-params',
                component: () => import('@/components/page/sys-settings/SysParams.vue'),
                meta: {
                    title: '参数管理',
                    requireAuth: true
                }
            },
            {
                path: '/sys-dict',
                component: () => import('@/components/page/sys-settings/SysDict.vue'),
                meta: {
                    title: '字典管理',
                    requireAuth: true
                }
            },
            {
                path: '/job-schedule',
                component: () => import('@/components/page/sys-settings/JobSchedule.vue'),
                meta: {
                    title: '定时任务',
                    requireAuth: true
                }
            },
            {
                path: '/oss-oss',
                component: () => import('@/components/page/sys-settings/OssOss.vue'),
                meta: {
                    title: '文件上传',
                    requireAuth: true
                }
            },
            {
                path: '/product-category-manage',
                component: () => import('@/components/page/product-manage/ProductCategoryManage.vue'),
                meta: {
                    title: '商品类目管理',
                    requireAuth: true
                }
            },
            {
                path: '/product-manage',
                component: () => import('@/components/page/product-manage/ProductManage.vue'),
                meta: {
                    title: '商品管理',
                    requireAuth: true
                }
            },
            {
                path: '/product-image-manage',
                component: () => import('@/components/page/product-manage/ProductImageManage.vue'),
                meta: {
                    title: '商品图片管理',
                    requireAuth: true
                }
            },
            {
                path: '/product-increase',
                component: () => import('@/components/page/product-manage/ProductIncrease.vue'),
                meta: {
                    title: '新增商品',
                    requireAuth: true
                }
            },
            {
                path: '/product-detail',
                component: () => import('@/components/page/product-manage/ProductDetail.vue'),
                meta: {
                    title: '商品详情',
                    requireAuth: true
                }
            },
            {
                path: '/banner-image-manage',
                component: () => import('@/components/page/operate-manage/BannerImageManage.vue'),
                meta: {
                    title: 'bnner图片管理',
                    requireAuth: true
                }
            },
            {
                path: '/banner-increase',
                component: () => import('@/components/page/operate-manage/BannerIncrease.vue'),
                meta: {
                    title: '新增banner',
                    requireAuth: true
                }
            },

            {
                path: '/basic-data-manage',
                component: () => import('@/components/page/operate-manage/BasicDataManage.vue'),
                meta: {
                    title: '基础数据管理',
                    requireAuth: true
                }
            },
            {
                path: '/wechat-reply-code',
                component: () => import('@/components/page/operate-manage/WechatReplyCode.vue'),
                meta: {
                    title: '小区微信回复暗号',
                    requireAuth: true
                }
            },
            {
                path: '/community-manage',
                component: () => import('@/components/page/operate-manage/CommunityManage.vue'),
                meta: {
                    title: '小区管理',
                    requireAuth: true
                }
            },
            {
                path: '/house-manage',
                name: 'HouseManage',
                component: () => import('@/components/page/operate-manage/HouseManage.vue'),
                meta: {
                    title: '户室管理',
                    requireAuth: true
                }
            },
            {
                path: '/house-manage-copy',
                name: 'HouseManageCopy',
                component: () => import('@/components/page/operate-manage/HouseManageCopy.vue'),
                meta: {
                    title: '住室管理',
                    requireAuth: true
                }
            },
            {
                path: '/householdpush-log',
                component: () => import('@/components/page/operate-manage/HouseholdPushLog.vue'),
                meta: {
                    title: '户室推送日志',
                    requireAuth: true
                }
            },
            {
                path: '/proposal-manage',
                component: () => import('@/components/page/operate-manage/ProposalManage.vue'),
                meta: {
                    title: '建议记录',
                    requireAuth: true
                }
            },
            {
                path: '/withdrawal-manage',
                component: () => import('@/components/page/withdrawal-manage/WithdrawalManage.vue'),
                meta: {
                    title: '提现申请记录',
                    requireAuth: true
                }
            },
            {
                path: '/collect-manage',
                component: () => import('@/components/page/collect-manage/collectManage.vue'),
                meta: {
                    title: '收运数据流水',
                    requireAuth: true
                }
            },
            {
                path: '/collection-and-transportation-statistics',
                component: () => import('@/components/page/collect-manage/collectionAndTransportationStatistics.vue'),
                meta: {
                    title: '收运数据统计',
                    requireAuth: true
                }
            },
            {
                path: '/community-participation-rate-manage',
                component: () => import('@/components/page/collect-manage/communityParticipationRateManage.vue'),
                meta: {
                    title: '小区参与率管理',
                    requireAuth: true
                }
            },
            {
                path: '/com-coll-trans-data',
                component: () => import('@/components/page/collect-manage/ComCollTransData.vue'),
                meta: {
                    title: '城管与邦凝收运数据对比',
                    requireAuth: true
                }
            },

            {
                path: '/yes-no-part-house-manage',
                component: () => import('@/components/page/collect-manage/YesNoPartHouseManage.vue'),
                meta: {
                    title: '有无参与户室管理',
                    requireAuth: true
                }
            },
            {
                path: '/release-data-details',
                component: () => import('@/components/page/collect-manage/releaseDataDetails.vue'),
                meta: {
                    title: '投放数据明细',
                    requireAuth: true
                }
            },
            {
                path: '/waste-category-manage',
                component: () => import('@/components/page/collect-manage/wasteCategoryManage.vue'),
                meta: {
                    title: '垃圾品类管理',
                    requireAuth: true
                }
            },
            {
                path: '/scale-admin-manage',
                component: () => import('@/components/page/user-manage/ScaleAdminManage.vue'),
                meta: {
                    title: '秤管理员管理',
                    requireAuth: true
                }
            },
            {
                path: '/scale-manage',
                component: () => import('@/components/page/device-manage/ScaleManage.vue'),
                meta: {
                    title: '秤管理',
                    requireAuth: true
                }
            },
            {
                path: '/weighbridge-data-manage',
                component: () => import('@/components/page/sorting-center-manage/WeighbridgeDataManage.vue'),
                meta: {
                    title: '宁围分拣中心',
                    requireAuth: true
                }
            },
            {
                path: '/shushan-sorting-center',
                component: () => import('@/components/page/sorting-center-manage/ShushanSortingCenter.vue'),
                meta: {
                    title: '蜀山分拣中心',
                    requireAuth: true
                }
            },
            {
                path: '/xintang-sorting-center',
                component: () => import('@/components/page/sorting-center-manage/XintangSortingCenter.vue'),
                meta: {
                    title: '新塘分拣中心',
                    requireAuth: true
                }
            },
            {
                path: '/bangning-sort-center',
                component: () => import('@/components/page/sorting-center-manage/BangningSortCenter.vue'),
                meta: {
                    title: '邦凝分拣中心数据统计',
                    requireAuth: true
                }
            },
            {
                path: '/street-total',
                component: () => import('@/components/page/sorting-center-manage/StreetTotal.vue'),
                meta: {
                    title: '城厢',
                    requireAuth: true
                }
            },
            {
                path: '/beigan-sorting-center',
                component: () => import('@/components/page/sorting-center-manage/BeiganSortingCenter.vue'),
                meta: {
                    title: '北干分拣中心',
                    requireAuth: true
                }
            },
            {
                path: '/recovery-renewable-resources',
                component: () => import('@/components/page/sorting-center-manage/RecoveryRenewableResources.vue'),
                meta: {
                    title: '再生资源回收网点',
                    requireAuth: true
                }
            },

            {
                path: '/chengxiang-sorting-center',
                component: () => import('@/components/page/sorting-center-manage/ChengxiangSortingCenter.vue'),
                meta: {
                    title: '城厢分拣中心',
                    requireAuth: true
                }
            },
            {
                path: '/big-screen-add',
                component: () => import('@/components/page/data-big-screen/bigScreenAdd.vue'),
                meta: {
                    title: '数据大屏',
                    requireAuth: true
                }
            },
            {
                path: '/big-screen-manage',
                component: () => import('@/components/page/data-big-screen/bigScreenManage.vue'),
                meta: {
                    title: '数据大屏管理',
                    requireAuth: true
                }
            },

            {
                path: '/sorting-center-data-screen',
                component: () => import('@/components/page/data-big-screen/sortingCenterDataScreen.vue'),
                meta: {
                    title: '分拣中心数据大屏',
                    requireAuth: true
                }
            },
            {
                path: '/wechat-menu-manage',
                component: () => import('@/components/page/wechat-manage/WechatMenuManage.vue'),
                meta: {
                    title: '微信菜单管理',
                    requireAuth: true
                }
            }
        ]
    },
    {
        path: '/login',
        component: () => import('@/components/page/login-page/Login.vue'),
        meta: {
            title: '登录',
            requireAuth: false
        },
        name: 'Login'
    },
]